#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
日历计划模块
"""
from fastapi import APIRouter

# 创建路由
calendar_router = APIRouter(
    prefix="/calendar",
    tags=["calendar"],
    responses={404: {"description": "未找到"}},
)

# 导入路由
from . import routes

# 导入并启动任务管理器
from .tasks import calendar_task_manager

try:
    calendar_task_manager.start()
except Exception as e:
    print(f"启动日历任务管理器失败: {e}")